<?php

namespace app\site\service\store;

use app\model\store\StoreManager;
use app\site\service\SiteBaseService;
use app\site\service\traits\InstanceTrait;
use think\db\Query;

class StoreManagerService extends SiteBaseService
{

    use InstanceTrait;

    function initialize()
    {
        $this->model = new StoreManager();
    }

    function formatData(array $data): array
    {
        return $data;
    }

    public function query(): Query
    {
        return $this->makeQuery()->filter(function ($v) {
            $v->payTimeStr = miDate('Y-m-d', $v->pay_time);
        });
    }
}
